package com.shaozi.nc.manage;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shaozi.nc.data.mongodao.NoticeRecordNumMDao;
import com.shaozi.lib.manage.ManageBase;

/**
 * @author lyx
 */
@Service
public class NoticeRecordNumManage extends ManageBase {

	private final Logger logger = Logger.getLogger(NoticeRecordNumManage.class);

	@Autowired
	private NoticeRecordNumMDao noticeRecordNumMDao;
	
	public void addInc(String companyId,Integer type,int inc){
		noticeRecordNumMDao.incCompanyId(companyId, type,inc);
		//noticeRecordNumMDao.inc(type);
	}
	
	public void addIncByNotCompany(Integer type,int inc){
		noticeRecordNumMDao.inc(type,inc);
	}
}
